package org.hrc.puzzleGame.model;


import java.util.Date;

public class User {
    private Integer id;
    private String userName;
    private String password;
    private Integer state;
    private Integer raking ;

    private Integer step;
    private Date createTime;
    private Date updateTime;

    public User(String userName, String password) {
        this.userName = userName;
        this.password = password;
        this.step = 0;
        this.state = 1;
    }
    public User() {
    }
    public User(Integer id, String userName, String password, Integer state) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.state = state;
    }
    public User(String userName, String password, Integer state) {
        this.userName = userName;
        this.password = password;
        this.state = state;
        this.step = Integer.valueOf(0);
    }
    public User(Integer id, String userName, String password, Integer state, Integer raking, Date createTime, Date updateTime) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.state = state;
        this.raking = raking;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public User(Integer id, String userName, String password, Integer state, Integer raking, Integer step, Date createTime, Date updateTime) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.state = state;
        this.raking = raking;
        this.step = step;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }


    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return state
     */
    public Integer getState() {
        return state;
    }

    /**
     * 设置
     * @param state
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 获取
     * @return createTime
     */


    /**
     * 获取
     * @return raking
     */
    public Integer getRaking() {
        return raking;
    }

    /**
     * 设置
     * @param raking
     */
    public void setRaking(Integer raking) {
        this.raking = raking;
    }



    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return step
     */
    public Integer getStep() {
        return step;
    }

    /**
     * 设置
     * @param step
     */
    public void setStep(Integer step) {
        this.step = step;
    }

    public String toString() {
        return "User{id = " + id + ", userName = " + userName + ", password = " + password + ", state = " + state + ", raking = " + raking + ", step = " + step + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
